import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import p001 from './p001';

export default async function a001(fd: IFeidaoAiBrowserComponent, project_asset_no: string) {
	// 修改页面样式
	const detail = fd.data.node.querySelector<HTMLElement>('[data-id="detail"]');
	set_node_cls(detail, 'display-n', false);
	// 根据项目资产编号获取项目资产数据
	const res = await nodejs('project-assets/zj-000005/s001', {
		project_asset_no
	});
	render(fd, res, p001, 'p001', 'inner');
}
